import request from '@/utils/request'

export function getCarouselList(data) {
  return request({
    url: '/carousel/list',
    method: 'post',
    data
  })
}

export function getCarousel(id) {
  return request({
    url: '//carousel/get',
    method: 'post',
    params: { id }
  })
}

export function addCarousel(data) {
  return request({
    url: '/carousel/add',
    method: 'post',
    data
  })
}

export function editCarousel(data) {
  return request({
    url: '/carousel/edit',
    method: 'post',
    data
  })
}

export function editCarouselStatus(id, status) {
  return request({
    url: '/carousel/edit_status',
    method: 'post',
    params: { id, status }
  })
}
